<link rel="stylesheet" href="../static/css/style.css">
<link rel="stylesheet" href="../static/css/styleoneadd.css">
<link rel="stylesheet" href="../static/plugins/layui/css/layui.css">
<link rel="stylesheet" href="../static/plugins/bootstrap-3.3.7/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="../static/plugins/bootstrap-3.3.7/css/bootstrap.min.css">

<style>
    body{
        background-color: #f2f2f2 !important;
    }
</style>
    <!-- 内容主体区域 -->
<div class="layui-fluid-pad">
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-header">合同发送</div>
            <div class="layui-card-body">
                <div class="layui-row layui-pad15">
                    <form class="layui-form" action="">
                        <div class="layui-col-md12 layui-col-lh">
                            <div class="layui-row layui-col-space10">
                                <div class="layui-col-md2">
                                    <input type="text" class="form-control" placeholder="合同编号" onkeyup="value=value.replace(/[^\d]/g,'')">
                                </div>
                                <div class="layui-col-md2">
                                    <input type="text" class="form-control" placeholder="合同名称">
                                </div>
                                <div class="layui-col-md1">
                                    <select class="form-control" lay-ignore>
                                        <option value="">状态</option>
                                        <option value="0">待审核</option>
                                        <option value="1">已通过</option>
                                        <option value="2">已发送</option>
                                    </select>
                                </div>
                                <div class="layui-col-md3">
                                    <div class="layui-row">
                                        <div class="layui-col-md12 layui-order-flexs">
                                            <input type="text" class="form-control layui-gd-widths" placeholder="时间" id="test1">
                                            &nbsp;&nbsp;至&nbsp;&nbsp;
                                            <input type="text" class="form-control layui-gd-widths" placeholder="时间" id="test2">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md1">
                                    <button class="layui-btn layui-t-h">筛选</button>
                                </div>
                                <div class="layui-col-md3 layui-text-right">
                                    <a href="javascript:;" class="layui-btn layui-t-h newContract">新建合同</a>
                                </div>
                            </div>
                        </div>
                    </form>

                    <!--表格-->
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <table class="layui-data-zs"  border="1" style="    border: 1px solid #e5e5e5;">
                                <tr class="layui-t-h layui-hg-b" style=" background-color: #34C0E3;color: #ffffff;">
                                    <th>序号</th>
                                    <th>合同编号</th>
                                    <th>合同名称</th>
                                    <th>金额（元）</th>
                                    <th>备注</th>
                                    <th>审核状态</th>
                                    <th>生成时间</th>
                                    <th>操作</th>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>201804265698</td>
                                    <td>掌心科技员工体检销售合同</td>
                                    <td>5860</td>
                                    <td>优惠5000</td>
                                    <td><span class="order-status-4">通过</span></td>
                                    <td>2018-04-26 10:25:20</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty  layui-zdy-bj sendOut">发送</a>
                                        <a href="javascript:;" class="text-muted">已发送</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-zdy-bj">编辑</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>201804265698</td>
                                    <td>掌心科技员工体检销售合同</td>
                                    <td>5860</td>
                                    <td>优惠5000</td>
                                    <td><span class="order-status-4">未通过</span></td>
                                    <td>2018-04-26 10:25:20</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty  layui-zdy-bj sendOut">发送</a>
                                        <a href="javascript:;" class="text-muted">已发送</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-zdy-bj">编辑</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>201804265698</td>
                                    <td>掌心科技员工体检销售合同</td>
                                    <td>5860</td>
                                    <td>优惠5000</td>
                                    <td><span class="order-status-4">通过</span></td>
                                    <td>2018-04-26 10:25:20</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty  layui-zdy-bj sendOut">发送</a>
                                        <a href="javascript:;" class="text-muted">已发送</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-zdy-bj">编辑</a>
                                    </td>
                                </tr>

                            </table>
                        </div>
                        <!--分页-->
                        <div class="layui-col-md12 layui-page-top">
                            <div id="demo7"></div>
                        </div>
                        <!--分页end-->
                    </div>
                    <!--表格end-->
                </div>

            </div>
        </div>
    </div>
</div>


<script src="../static/js/jquery.min.js"></script>
<script src="../static/plugins/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="../static/plugins/layui/layui.js"></script>
<script src="../static/js/app/consts/consts.js"></script>
<script>
    //Demo
    layui.use(['form','jquery','laypage','laydate','table','layer'], function(){
        var form = layui.form;
        var laydate = layui.laydate;
        var laypage = layui.laypage;
        var $ = layui.$;
        layer.msg(developingMsg);
        //监听提交
        // form.on('submit(formDemo)', function(data){
        //     layer.msg(JSON.stringify(data.field));
        //     return false;
        // });
        // 日期
        laydate.render({
            elem: '#test1' //指定元素
            ,theme: '#34C0E3'
        });
        laydate.render({
            elem: '#test2' //指定元素
            ,theme: '#34C0E3'
        });
        //新建合同
        $('.newContract').on('click',function () {
            var strU = '新建合同.html';
            layer.open({
                type: 2,
                title:'新建合同',
                area: ['700px', '600'],
                shadeClose: true, //开启遮罩关闭
                content: strU
            });
        });
        //发送
        $('.sendOut').on('click',function () {
            var strU = '发送合同.html';
            layer.open({
                type: 2,
                title:'发送合同',
                area: ['400px', '300'],
                shadeClose: true, //开启遮罩关闭
                content: strU
            });
        });


        //分页
        laypage.render({
            elem: 'demo7'
            ,count: 100
            ,theme: '#34C0E3'
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj){
                // console.log(obj)
            }
        });
    });
</script>




